package com.tjetc.domian;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Resident implements Serializable {
    @Serial
    private static final long serialVersionUID = -3804900722784863082L;
    private Integer residentid;

    private String name;

    private String gender;

    private Integer age;

    private Integer apartmentid;

    private String contact;

    private String email;

    public Resident(String name, String gender, int age, int apartmentid, String contact, String email) {
        this.name = name;
        this.gender = gender;
        this.age = age;
        this.apartmentid = apartmentid;
        this.contact = contact;
        this.email = email;

    }
}